import { MockMethod } from 'vite-plugin-mock'

const fileList = [{
  "createBy": "123",
  "createTime": "2020-12-27 12:13:32",
  "deleteStatus": "1",
  "id": "160907121236622",
  "realName": "b.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 20850
}, {
  "createBy": "123",
  "createTime": "2020-12-27 12:13:32",
  "deleteStatus": "1",
  "id": "160907121237429",
  "realName": "a.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 341620
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:33:01",
  "deleteStatus": "1",
  "id": "160906518094061",
  "realName": "a.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 341620
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:32:58",
  "deleteStatus": "1",
  "id": "160906517849395",
  "realName": "c.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 127438
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:32:56",
  "deleteStatus": "1",
  "id": "160906517566371",
  "realName": "b.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 20850
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:31:38",
  "deleteStatus": "1",
  "id": "160906509750758",
  "realName": "a.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 341620
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:31:38",
  "deleteStatus": "1",
  "id": "160906509780611",
  "realName": "b.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 20850
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:31:38",
  "deleteStatus": "1",
  "id": "160906509781034",
  "realName": "c.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 127438
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:31:38",
  "deleteStatus": "1",
  "id": "160906509782749",
  "realName": "PipetteQuSeRuanJian.rar",
  "path": "D:/testUploadFilePath",
  "suffix": "rar",
  "size": 990979
}, {
  "createBy": "123",
  "createTime": "2020-12-27 10:30:46",
  "deleteStatus": "1",
  "id": "160906504585110",
  "realName": "a.jpg",
  "path": "D:/testUploadFilePath",
  "suffix": "jpg",
  "size": 341620
}]

export default [
  {
    url: '/mock/system/file/list',
    method: 'get',
    response: ({ query,data }) => {
      return {
        code: 200,
        data: fileList,
        message: '操作成功',
        total: 40
      }
    }
  }
] as MockMethod[]